package greedysnake;

import javax.swing.*;
import java.net.URL;

/**
 * @author zxl
 * @version 1.0
 * @date 2021/10/30 15:32
 * 资源
 */
public class Data {

    //相对路径  tx.jpg
    //绝对路径   /  相当于当前的的项目
    public static URL bodyURl = Data.class.getResource("statics/ball.png");
    public static URL downURl = Data.class.getResource("statics/head_down.png");
    public static URL foodURl = Data.class.getResource("statics/ball.png");
    public static URL leftURl = Data.class.getResource("statics/head_left.png");
    public static URL upURl = Data.class.getResource("statics/head_up.png");
    public static URL rightURl = Data.class.getResource("statics/head_right.png");


    public static ImageIcon body  =new ImageIcon(bodyURl);
    public static ImageIcon down  =new ImageIcon(downURl);
    public static ImageIcon food  =new ImageIcon(foodURl);
    public static ImageIcon left  =new ImageIcon(leftURl);
    public static ImageIcon up  =new ImageIcon(upURl);
    public static ImageIcon right  =new ImageIcon(rightURl);

}
